import { defineStore } from "pinia";
import { ShareState } from "@/stores/interface";

export const useShareStore = defineStore({
  id: "geeker-share",
  state: (): ShareState => ({
    is_qualify: "全部指标",
    title: "",
    data: []
  }),
  getters: {},
  actions: {
    set_qualify(qualify) {
      this.is_qualify = qualify;
    },
    set_title(title) {
      this.title = title;
    },
    set_data(data) {
      this.data = data;
    }
  }
});
